package com.yanfan.iot.service.impl;

import com.yanfan.iot.domain.Case;
import com.yanfan.iot.mapper.CaseMapper;
import com.yanfan.iot.service.CaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class CaseServiceImpl implements CaseService {

    @Autowired
    private CaseMapper caseMapper;

    @Override
    public int addCase(Case cases) {
        return caseMapper.addCase(cases);
    }

    @Override
    public int updateCase(Case cases) {
        return caseMapper.updateCase(cases);
    }

    @Override
    public int deleteCase(Integer id) {
        return caseMapper.deleteCase(id);
    }

    @Override
    public List<Case> selectAllCase(Case cases) {
        return caseMapper.selectAllCase(cases);
    }
}
